//
//  RSWDBOperation.h
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 16/10/24.
//  Copyright © 2016年 com.rs. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MyInfo;

@interface RSWDBOperation : NSObject

/**
 *  打开数据库
 */
+ (void)RSWDBOperationOpen;

/**
 *  关闭数据库
 */
+ (void)RSWDBOperationClose;

/**
 *  获取数据句柄
 *
 *  @return 数据库句柄
 */
+ (XMSSQLiteHelper *)RSWDBOperationSQLite;

/**
 *  保存个人信息，注意，这个接口不更新企业名称
 *
 *  @param myInfo     个人信息 
 */
-(XLGResult*)updateMyInfo:(MyInfo*)myInfo;

-(XLGResult*)updateMyHeadImage:(NSString*)logoURL;

/**
 *  获取当前用户的基本信息
 *
 */
-(XLGResult*)getCurrentData;


-(XLGResult*)saveEntAddressBookContact:(NSArray*)contacts;

-(XLGResult*)deleteEntAddressBookContact:(NSArray*)contactsID;

-(XLGResult*)saveDicInfo:(NSArray*)dics;
-(XLGResult*)saveMenuInfo:(NSArray*)dics;
-(XLGResult*)saveWorkflowInfo:(NSArray*)dics;
-(XLGResult*)saveDeptInfo:(NSArray*)dics;

-(XLGResult*)getEntAddressBookContactDetialWithContactNumber:(NSArray*)contactNumbers;

-(XLGResult*)getEntAddressBookContact;

-(XLGResult*)getDictionaryInfoWithTypeId:(NSString*)typeId;
@end
